package com.itheima.tliasmanagement.service;

import com.itheima.tliasmanagement.dto.AddEmpDto;
import com.itheima.tliasmanagement.dto.EmpListDTO;
import com.itheima.tliasmanagement.dto.LoginDto;
import com.itheima.tliasmanagement.dto.UpdateEmpDto;
import com.itheima.tliasmanagement.entity.Emp;
import com.itheima.tliasmanagement.vo.EmpListVo;
import com.itheima.tliasmanagement.vo.EmpVo;
import com.itheima.tliasmanagement.vo.LoginResultVo;
import com.itheima.tliasmanagement.vo.PageBean;

import java.util.List;

public interface EmpService {

    PageBean<EmpListVo> emps(EmpListDTO dto);

    void addEmp(AddEmpDto dto);

    void deleteEmps(List<Integer> ids);

    EmpVo getById(Integer id);

    void updateEmp(UpdateEmpDto dto);

    List<Emp> all();

    LoginResultVo login(LoginDto dto);
}
